Skip to content

Restore Ellie links on the examples site#198

Merged
gampleman merged 1 commit into
masterfrom
fix-ellie-links
Jun 25, 2026
Merged

Restore Ellie links on the examples site#198
gampleman merged 1 commit into
masterfrom
fix-ellie-links

Conversation

@gampleman

Copy link
Copy Markdown
Owner

Problem

The "Edit on Ellie" links disappeared from the examples site after the upgrade to elm-example-publisher 2.0 (#193). The build logs show Ellies are still being published successfully to the Ellie API, but the links never render in the generated HTML.

Root cause

A decoder bug in elm-example-publisher 2.0.2: publishEllies attaches ellieLink at the example's top level (matching its Example type), but ExamplePublisher.elm's decoder read it from Decode.at ["tags", "ellieLink"]. Decode.maybe swallowed the mismatch, so ellieLink was always Nothing and ellieLinkView rendered nothing.

Verified end-to-end:

  • Live site (/ColorSpaceInterpolations/): zero ellie references.
  • Archived pre-upgrade site: Edit on Ellieellie-app.com/rLmdYVnpzsva1 present.
  • Standalone decode test on the exact JSON shape the publisher emits: old path → Nothing, fixed path → Just <url>.

Fix

Fixed upstream in elm-example-publisher (decode the top-level ellieLink field) and released as 2.0.3. This PR bumps the devDependency ^2.0.2^2.0.3.

The elm-review CLI pin (2.10.2) in the lockfile is preserved.

Verification

Links will return once Netlify rebuilds from this branch. Worth a quick curl .../ColorSpaceInterpolations/ | grep -i ellie on the deploy preview to confirm.

2.0.3 fixes a decoder bug that dropped the per-example ellieLink, so the
"Edit on Ellie" links disappeared from the examples site after the 2.0
upgrade.
@gampleman gampleman merged commit 9a58272 into master Jun 25, 2026
6 checks passed
@gampleman gampleman deleted the fix-ellie-links branch June 25, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant